<template>
	<view>
		
		

		<view class="container">
			<view class="compound_item" @tap="see_detail(item.id)" v-for="item,id in list" :key="id">
				<!-- <image :src="item.image" class="compound_img" mode="aspectFill"></image> -->

				<view class="info_box">
					<view class="info_text">
						{{item.stove}}
					</view>
					<n-icon name="right" size="30" color="#fff"></n-icon>
				</view>
			</view>



		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				list: [],
				page: 1,
				limit: 10,
				hasNextPage: true,
			}
		},
		onLoad(options) {
			this.get_data_list()
		},
		onReachBottom() {
			let new_page = this.page + 1;
			let data = {
				page: new_page,
				limit: this.limit
			}
			this.$api.getStoveList(data, res => {
				if (res.status) {
					this.list = this.list.concat(res.data);
					this.hasNextPage = res.data.length >= this.limit;
					this.page = new_page
				}
			})
		},
		methods: {
			get_data_list: function() {
				let data = {
					page: this.page,
					limit: this.limit
				}
				this.$api.getStoveList(data, res => {
					if (res.status) {
						this.list = res.data;
						this.hasNextPage = res.data.length >= this.limit;
					}
				})
			},
			see_detail: function(id) {
				uni.navigateTo({
					url: 'ronglu_page?id=' + id
				})
			}
		}
	}
</script>

<style>
	.com_time {
		font-size: 24rpx;
		font-weight: 400;

		color: #A7A8AD;
		padding-top: 10rpx;
		padding-bottom: 40rpx;

	}

	.com_time2 {
		color: #F2D7AA;
		font-size: 24rpx;
		font-weight: 400;
		padding-top: 10rpx;
	}

	.icon_3d {
		width: 33rpx;
		height: 33rpx;
	}

	.com_name {
		display: flex;
		align-items: center;
		justify-content: space-between;
		font-size: 32rpx;
		font-weight: 800;
		color: #FFFFFF;
		line-height: 45rpx;
	}

	.com_info {
		padding: 20rpx;
	}

	.yellow {
		color: #f00;
	}

	.jindu_text {
		position: relative;
		font-weight: bold;
		font-size: 24rpx;
		z-index: 10;
	}

	.jindu {
		display: flex;
		justify-content: center;
		align-items: center;
		position: absolute;
		left: 109rpx;
		top: 235rpx;
		font-size: 20rpx;
		padding: 0 29rpx;
		width: 187rpx;
		height: 48rpx;


		color: #fff;
		position: absolute;
		white-space: nowrap;
		line-height: 1;
		z-index: 10;

		border-radius: 10rpx;
	}

	.jindu_bg {
		position: absolute;
		top: 0;
		left: 0;
		background: rgba(255, 255, 255, 0.53);
		filter: blur(5rpx);
		height: 100%;
		width: 100%;
		border-radius: 20rpx;
	}



	.btn_bg {
		position: absolute;
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;

	}


	.com_img {
		width: 100%;
		height: 315rpx;
		border-radius: 20rpx;

	}

	.com_item {
		width: 315rpx;
		height: 486rpx;
		background: #202126;
		box-shadow: 0px 10rpx 40rpx rgba(0, 0, 0, 0.53);
		border-radius: 20rpx;
		position: relative;
		margin-bottom: 40rpx;
		/* padding: 15rpx; */
	}

	.mart_goods_bg {
		position: absolute;
		bottom: 0;
		left: 0;
		width: 315rpx;
		height: 188rpx;

	}


	.container {
		width: 100%;
		padding: 30rpx 30rpx;
		position: relative;
		z-index: 10;
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
	}
</style>

<style>
	.num {
		color: #F4E1BC;
	}

	.info_time {
		padding-top: 23rpx;
		width: 100%;
		display: flex;
		justify-content: space-between;
		align-items: center;
		line-height: 33rpx;
		font-size: 24rpx;
		color: #e2e2e2;
	}

	.info_text {
		line-height: 50rpx;
		font-size: 36rpx;
		font-weight: bold;
		color: #fff;
	}

	.info_box {
		flex: 1;
		padding-left: 20rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.compound_img {
		width: 160rpx;
		height: 160rpx;
		border-radius: 30rpx;
	}

	.compound_item {
		display: flex;
		align-items: center;
		width: 100%;
		background: #212327;
		opacity: 1;
		border-radius: 30rpx;
		padding: 40rpx 20rpx;
		margin-bottom: 20rpx;
		position: relative;
	}

	page {}
</style>
